home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
map100p.zip
/
MAP.INT
< prev
next >
Wrap
Text File
|
1991-11-02
|
1KB
|
58 lines
{$A+,B-,D-,E-,F-,G-,I-,L-,N-,O-,R-,S-,V-,X-}
Unit MAP;
INTERFACE
Uses WOW;
Type
Str16 = string[16];
FlagPos = 1..16;
NibblePos = 1..4;
Flags = word; { True/False }
SplitWord = record
Hi,
Lo: Byte;
end;
const
MapVer = '1.00';
Function FlagsOn (F : Flags; NUM : FlagPos)
: Boolean;
Function GetDoubleByte ( VAR DB : word; NUM : NibblePos)
: byte;
Function GetHiNibble ( DN : byte)
: byte;
Function GetLoNibble ( DN : byte)
: byte;
Procedure SetDoubleByte ( VAR DB : word; NUM : NibblePos; Value: Byte);
Procedure SetFlags ( VAR F : Flags; NUM : FlagPos; SW: Boolean);
Function SetHiNibble ( DN,Hi: byte)
: byte;
Function SetLoNibble ( DN,Lo: byte)
: byte;
Function SwapNibbles ( DN : byte)
: byte;
Procedure ToggleFlags ( VAR F : Flags; NUM : FlagPos);
Function Flags2Str ( F: Flags)
: str16;